package ys.ewp.dto;

import ys.ewp.po.EnterpriseInfo;

public class EnterpriseInfoDto {
	
	private Integer id;
	//企业名称
	private String name;
	//企业简称
	private String shortName;
	//企业联系人
	private String linkman;
	//联系人职务
	private String linkmanPosition;
	//公司电话
	private String phone;
	//企业邮箱
	private String email;
	//企业类型
	private String type;
	//创始人
	private String founder;
	//创立时间
	private String createDate;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public String getLinkman() {
		return linkman;
	}
	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}
	public String getLinkmanPosition() {
		return linkmanPosition;
	}
	public void setLinkmanPosition(String linkmanPosition) {
		this.linkmanPosition = linkmanPosition;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getFounder() {
		return founder;
	}
	public void setFounder(String founder) {
		this.founder = founder;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	
	public static EnterpriseInfoDto getDtoByPo(EnterpriseInfo ent){
		EnterpriseInfoDto entDto = new EnterpriseInfoDto();
		
		entDto.setId(ent.getId());
		entDto.setName(ent.getName());
		entDto.setShortName(ent.getShortName());
		entDto.setLinkman(ent.getLinkman());
		entDto.setLinkmanPosition(ent.getLinkmanPosition());
		entDto.setPhone(ent.getPhone());
		entDto.setEmail(ent.getEmail());
		entDto.setType(ent.getType());
		entDto.setFounder(ent.getFounder());
		entDto.setCreateDate(ent.getCreateDate());
		
		return entDto;
	}
	
	public static EnterpriseInfo getPoByDto(EnterpriseInfoDto entDto){
		EnterpriseInfo ent = new EnterpriseInfo();
		
		ent.setId(entDto.getId());
		ent.setName(entDto.getName());
		ent.setShortName(entDto.getShortName());
		ent.setLinkman(entDto.getLinkman());
		ent.setLinkmanPosition(entDto.getLinkmanPosition());
		ent.setPhone(entDto.getPhone());
		ent.setEmail(entDto.getEmail());
		ent.setType(entDto.getType());
		ent.setFounder(entDto.getFounder());
		ent.setCreateDate(entDto.getCreateDate());
		
		return ent;
	}

}
